package com.example.oj.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 *
 * @TableName submit
 */
@TableName(value ="submit")
@Data
public class Submit implements Serializable {
    /**
     *
     */
    @TableId
    private Long id;

    /**
     * 题目Id
     */
    private Long questionId;

    /**
     * 用户Id
     */
    private Long userId;

    /**
     * 用户代码
     */
    private String code;

    /**
     * 语言类型
     */
    private Integer language;

    /**
     * 判题信息
     */
    private String judgeInfo;

    /**
     * 题目执状态，0是未执行，1是正在执行，2是结束
     */
    private Integer status;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    /**
     *
     */
    private Integer deleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}